package com.xj.common.bussiness.deviceInformationImg.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE;

/**
 * <p>
 * 设备各种铭牌的照片
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-27
 */
@Data
@TableName("tb_device_information_img")
public class TbDeviceInformationImg extends Model<TbDeviceInformationImg> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	/**
     * 设备信息id
     */
	@TableField(value="device_information_id")
	private Integer deviceInformationId;

    /**
     * 身份证号
     */
	@TableField(value="identity_num")
	private String identityNum;

    /**
     * 大架子编号
     */
	@TableField(value="big_shelf_num")
	private String bigShelfNum;
	/**
	 * 备案信息设备照片
	 */
	@TableField(value="reference_device_img")
	private String referenceDeviceImg;
	/**
	 * 创建时间
	 */
	@TableField(value="create_date")
	@DateTimeFormat(iso = DATE)
	private Date createDate;

	
	public Integer getDeviceInformationId() {
		return deviceInformationId;
	}

	public void setDeviceInformationId(Integer deviceInformationId) {
		this.deviceInformationId = deviceInformationId;
	}

	public String getReferenceDeviceImg() {
		return referenceDeviceImg;
	}

	public void setReferenceDeviceImg(String referenceDeviceImg) {
		this.referenceDeviceImg = referenceDeviceImg;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getIdentityNum() {
		return identityNum;
	}

	public void setIdentityNum(String identityNum) {
		this.identityNum = identityNum;
	}

	public String getBigShelfNum() {
		return bigShelfNum;
	}

	public void setBigShelfNum(String bigShelfNum) {
		this.bigShelfNum = bigShelfNum;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
